package com.ossjk.oa.accounting.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ossjk.oa.accounting.entity.CwCpttypes;
import com.ossjk.oa.accounting.mapper.CwCpttypesMapper;
import com.ossjk.oa.accounting.service.ICwCpttypesService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chair
 * @since 2020-05-14
 */
@Service
public class CwCpttypesServiceImpl extends ServiceImpl<CwCpttypesMapper, CwCpttypes> implements ICwCpttypesService {

	@Override
	public Page selectVoPage(Page page, Wrapper wrapper) {
		// TODO Auto-generated method stub
		
		page.setRecords(baseMapper.selectVoPage(page, wrapper));
		return  page;
	}

	@Override
	public boolean updateEndtime(Date endtime, String id) {
		// TODO Auto-generated method stub
		return baseMapper.updateEndtime(endtime, id)==1;
	}

	@Override
	public List<CwCpttypes> selectCwCpttypesInuse() {
		// TODO Auto-generated method stub
		return baseMapper.selectInuse();
	}
}
